package dao

import (
	"WORKSPACE/models"
	"fmt"
)

func GetAlldepartmentwage() (error, []models.Departmentwage, int64) {
	var DepartmentwageData []models.Departmentwage
	var total int64
	//fmt.Println(DepartmentwageData)
	err := db.Table("departmentwage").Order("ddata ASC").Count(&total).Find(&DepartmentwageData).Error
	fmt.Println(DepartmentwageData)
	return err, DepartmentwageData, total
}